
<%@ page import="org.product.Product" %>
<div id="show-product" class="content scaffold-show" role="main">
	<h1><g:message code="product.label" /></h1>
	<ol class="property-list product">
		<g:if test="${productInstance?.productCode}">
			<li class="fieldcontain">
				<span id="productCode-label" class="property-label"><g:message code="product.productCode.label" default="Product Code" /></span>
				<span class="property-value" aria-labelledby="productCode-label"><g:fieldValue bean="${productInstance}" field="productCode"/></span>
			</li>
		</g:if>
		<g:if test="${productInstance?.productName}">
			<li class="fieldcontain">
				<span id="productName-label" class="property-label"><g:message code="product.productName.label" default="Product Name" /></span>
				<span class="property-value" aria-labelledby="productName-label"><g:fieldValue bean="${productInstance}" field="productName"/></span>
			</li>
		</g:if>
	
		<g:if test="${productInstance?.productSpec}">
		<li class="fieldcontain">
			<span id="productSpec-label" class="property-label"><g:message code="product.productSpec.label" default="Product Spec" /></span>
			<span class="property-value" aria-labelledby="productSpec-label"><g:fieldValue bean="${productInstance}" field="productSpec"/></span>
		</li>
		</g:if>
	
		<g:if test="${productInstance?.productDes}">
			<li class="fieldcontain">
				<span id="productDes-label" class="property-label"><g:message code="product.productDes.label" default="Product Des" /></span>
				<span class="property-value" aria-labelledby="productDes-label"><g:fieldValue bean="${productInstance}" field="productDes"/></span>
			</li>
		</g:if>
	
		<g:if test="${productInstance?.productType}">
			<li class="fieldcontain">
				<span id="productType-label" class="property-label"><g:message code="product.productType.label" default="Product Type" /></span>
				
				<g:each in="${productInstance.productType}" var="p">
				<span class="property-value" aria-labelledby="productType-label"><g:link controller="productType" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></span>
				</g:each>
			</li>
		</g:if>
	</ol>
</div>
